<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
      <!--<el-form-item label="公司代码" prop="factoryCode">
        <el-input
          v-model="queryParams.factoryCode"
          placeholder="请输入公司代码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="公司名称" prop="factoryName">
        <el-input
          v-model="queryParams.factoryName"
          placeholder="请输入公司名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
     <!-- <el-form-item label="WMS子图号" prop="wmsItemCode">
        <el-input
          v-model="queryParams.wmsItemCode"
          placeholder="请输入WMS子图号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <el-form-item label="子图号" prop="itemCode">
        <el-input
          v-model="queryParams.itemCode"
          placeholder="请输入子图号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物料号" prop="itemId">
        <el-input
          v-model="queryParams.itemId"
          placeholder="请输入物料号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物料条码号" prop="tmh">
        <el-input
          v-model="queryParams.tmh"
          placeholder="请输入物料条码号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="名称" prop="itemName">
        <el-input
          v-model="queryParams.itemName"
          placeholder="请输入名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
     <!-- <el-form-item label="公司代码" prop="supplyId">
        <el-input
          v-model="queryParams.supplyId"
          placeholder="请输入公司代码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="公司名称" prop="supplyName">
        <el-input
          v-model="queryParams.supplyName"
          placeholder="请输入公司名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
     <!-- <el-form-item label="物料正式属性" prop="itemZsAttr">
        <el-input
          v-model="queryParams.itemZsAttr"
          placeholder="请输入物料正式属性"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物料属性" prop="itemAttr">
        <el-input
          v-model="queryParams.itemAttr"
          placeholder="请输入物料属性"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="质量属性" prop="qualityAttr">
        <el-input
          v-model="queryParams.qualityAttr"
          placeholder="请输入质量属性"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
   <!--   <el-form-item label="生产线" prop="lineCode">
        <el-input
          v-model="queryParams.lineCode"
          placeholder="请输入生产线"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="生产线工位" prop="lineCodeGw">
        <el-input
          v-model="queryParams.lineCodeGw"
          placeholder="请输入生产线工位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <el-form-item label="出库仓库1" prop="stock1">
        <el-input
          v-model="queryParams.stock1"
          placeholder="请输入出库仓库1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
     <!-- <el-form-item label="合同份额" prop="contractFe">
        <el-input
          v-model="queryParams.contractFe"
          placeholder="请输入合同份额"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="份额计算周期" prop="feJsZq">
        <el-input
          v-model="queryParams.feJsZq"
          placeholder="请输入份额计算周期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="日订单一致性" prop="rddYzx">
        <el-input
          v-model="queryParams.rddYzx"
          placeholder="请输入日订单一致性"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="订单一致性" prop="ddYzx">
        <el-input
          v-model="queryParams.ddYzx"
          placeholder="请输入订单一致性"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="整车一致性" prop="zcYzx">
        <el-input
          v-model="queryParams.zcYzx"
          placeholder="请输入整车一致性"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="成对组号" prop="cdzh">
        <el-input
          v-model="queryParams.cdzh"
          placeholder="请输入成对组号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="组合体" prop="zht">
        <el-input
          v-model="queryParams.zht"
          placeholder="请输入组合体"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="配送上线策略" prop="pssxcl">
        <el-input
          v-model="queryParams.pssxcl"
          placeholder="请输入配送上线策略"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="投料位" prop="tlw">
        <el-input
          v-model="queryParams.tlw"
          placeholder="请输入投料位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="AB位" prop="abw">
        <el-input
          v-model="queryParams.abw"
          placeholder="请输入AB位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物料分类" prop="itemClass">
        <el-input
          v-model="queryParams.itemClass"
          placeholder="请输入物料分类"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="投料编组线路" prop="tlbzlx">
        <el-input
          v-model="queryParams.tlbzlx"
          placeholder="请输入投料编组线路"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="组链号" prop="zlh">
        <el-input
          v-model="queryParams.zlh"
          placeholder="请输入组链号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="组链器具数量" prop="zlqjNum">
        <el-input
          v-model="queryParams.zlqjNum"
          placeholder="请输入组链器具数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="配送车辆类型" prop="psCar">
        <el-input
          v-model="queryParams.psCar"
          placeholder="请输入配送车辆类型"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="配送设备控制" prop="psSbkz">
        <el-input
          v-model="queryParams.psSbkz"
          placeholder="请输入配送设备控制"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分拣台号" prop="fjHao">
        <el-input
          v-model="queryParams.fjHao"
          placeholder="请输入分拣台号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分拣时间" prop="fjTime">
        <el-input
          v-model="queryParams.fjTime"
          placeholder="请输入分拣时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分装线" prop="fzLine">
        <el-input
          v-model="queryParams.fzLine"
          placeholder="请输入分装线"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分装总成号" prop="fzZcHao">
        <el-input
          v-model="queryParams.fzZcHao"
          placeholder="请输入分装总成号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分装台号" prop="fzTHao">
        <el-input
          v-model="queryParams.fzTHao"
          placeholder="请输入分装台号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="分装时间" prop="fzTime">
        <el-input
          v-model="queryParams.fzTime"
          placeholder="请输入分装时间"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物料大类名称" prop="itemBigName">
        <el-input
          v-model="queryParams.itemBigName"
          placeholder="请输入物料大类名称"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物料大类号" prop="classBigId">
        <el-input
          v-model="queryParams.classBigId"
          placeholder="请输入物料大类号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="配台期量" prop="ppql">
        <el-input
          v-model="queryParams.ppql"
          placeholder="请输入配台期量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="大类配台层容量" prop="bigPtcrl">
        <el-input
          v-model="queryParams.bigPtcrl"
          placeholder="请输入大类配台层容量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="组合配台号" prop="zhPth">
        <el-input
          v-model="queryParams.zhPth"
          placeholder="请输入组合配台号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="组合配台层" prop="zhPtc">
        <el-input
          v-model="queryParams.zhPtc"
          placeholder="请输入组合配台层"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="综合配台号" prop="zwhPth">
        <el-input
          v-model="queryParams.zwhPth"
          placeholder="请输入综合配台号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="配送器具编码" prop="psQjCode">
        <el-input
          v-model="queryParams.psQjCode"
          placeholder="请输入配送器具编码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="器具层位置" prop="cjcWz">
        <el-input
          v-model="queryParams.cjcWz"
          placeholder="请输入器具层位置"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="通用专用" prop="tyzy">
        <el-input
          v-model="queryParams.tyzy"
          placeholder="请输入通用专用"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="组别" prop="zb">
        <el-input
          v-model="queryParams.zb"
          placeholder="请输入组别"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="单车" prop="dctyl">
        <el-input
          v-model="queryParams.dctyl"
          placeholder="请输入单车"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="配送期量" prop="psQl">
        <el-input
          v-model="queryParams.psQl"
          placeholder="请输入配送期量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="理想出库数" prop="lxCkNum">
        <el-input
          v-model="queryParams.lxCkNum"
          placeholder="请输入理想出库数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="配送物料来源" prop="psItemLy">
        <el-input
          v-model="queryParams.psItemLy"
          placeholder="请输入配送物料来源"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="出库仓库1" prop="stock1">
        <el-input
          v-model="queryParams.stock1"
          placeholder="请输入出库仓库1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="出库仓库2" prop="stock2">
        <el-input
          v-model="queryParams.stock2"
          placeholder="请输入出库仓库2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="定置库位" prop="dzkw">
        <el-input
          v-model="queryParams.dzkw"
          placeholder="请输入定置库位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="定置库位上下限" prop="dzkwsxx">
        <el-input
          v-model="queryParams.dzkwsxx"
          placeholder="请输入定置库位上下限"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否预投补货" prop="sfytbh">
        <el-input
          v-model="queryParams.sfytbh"
          placeholder="请输入是否预投补货"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="1级补货仓库" prop="bhStock1">
        <el-input
          v-model="queryParams.bhStock1"
          placeholder="请输入1级补货仓库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="1级补货仓库容量" prop="bhStockRl1">
        <el-input
          v-model="queryParams.bhStockRl1"
          placeholder="请输入1级补货仓库容量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="2级补货仓库" prop="bhStock2">
        <el-input
          v-model="queryParams.bhStock2"
          placeholder="请输入2级补货仓库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="2级补货仓库容量" prop="bhStockRl2">
        <el-input
          v-model="queryParams.bhStockRl2"
          placeholder="请输入2级补货仓库容量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="3级补货仓库" prop="bhStock3">
        <el-input
          v-model="queryParams.bhStock3"
          placeholder="请输入3级补货仓库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="3级补货仓库容量" prop="bhStockRl3">
        <el-input
          v-model="queryParams.bhStockRl3"
          placeholder="请输入3级补货仓库容量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="4级补货仓库" prop="bhStock4">
        <el-input
          v-model="queryParams.bhStock4"
          placeholder="请输入4级补货仓库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="4级补货仓库容量" prop="bhStockRl4">
        <el-input
          v-model="queryParams.bhStockRl4"
          placeholder="请输入4级补货仓库容量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="5级补货仓库" prop="bhStock5">
        <el-input
          v-model="queryParams.bhStock5"
          placeholder="请输入5级补货仓库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="是否夸批" prop="isKp">
        <el-input
          v-model="queryParams.isKp"
          placeholder="请输入是否夸批"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="第一批出库" prop="firstCk">
        <el-input
          v-model="queryParams.firstCk"
          placeholder="请输入第一批出库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="使用状态" prop="useState">
        <el-input
          v-model="queryParams.useState"
          placeholder="请输入使用状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="体现使用状态" prop="txUseState">
        <el-input
          v-model="queryParams.txUseState"
          placeholder="请输入体现使用状态"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="合并出库" prop="hbCk">
        <el-input
          v-model="queryParams.hbCk"
          placeholder="请输入合并出库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="托盘容量" prop="tpRl">
        <el-input
          v-model="queryParams.tpRl"
          placeholder="请输入托盘容量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="托盘编码" prop="tpBm">
        <el-input
          v-model="queryParams.tpBm"
          placeholder="请输入托盘编码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="限定入库数量校验" prop="xdRkNum">
        <el-input
          v-model="queryParams.xdRkNum"
          placeholder="请输入限定入库数量校验"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="送货包装编码" prop="shBzCode">
        <el-input
          v-model="queryParams.shBzCode"
          placeholder="请输入送货包装编码"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物料尺寸" prop="itemSize">
        <el-input
          v-model="queryParams.itemSize"
          placeholder="请输入物料尺寸"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="包装容量" prop="bzRl">
        <el-input
          v-model="queryParams.bzRl"
          placeholder="请输入包装容量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="最小包装量" prop="smallBzRl">
        <el-input
          v-model="queryParams.smallBzRl"
          placeholder="请输入最小包装量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="存储仓库" prop="ccCk">
        <el-input
          v-model="queryParams.ccCk"
          placeholder="请输入存储仓库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="存储库区" prop="ccKq">
        <el-input
          v-model="queryParams.ccKq"
          placeholder="请输入存储库区"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="存储库位" prop="ccKw">
        <el-input
          v-model="queryParams.ccKw"
          placeholder="请输入存储库位"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="安全库存" prop="stockSafe">
        <el-input
          v-model="queryParams.stockSafe"
          placeholder="请输入安全库存"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="库存下限" prop="downLine">
        <el-input
          v-model="queryParams.downLine"
          placeholder="请输入库存下限"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="库存上限" prop="upLine">
        <el-input
          v-model="queryParams.upLine"
          placeholder="请输入库存上限"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="溢库仓库" prop="ykStock">
        <el-input
          v-model="queryParams.ykStock"
          placeholder="请输入溢库仓库"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="发货地址" prop="fhAddress">
        <el-input
          v-model="queryParams.fhAddress"
          placeholder="请输入发货地址"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="收货地址" prop="shAddress">
        <el-input
          v-model="queryParams.shAddress"
          placeholder="请输入收货地址"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="物料流向" prop="itemLx">
        <el-input
          v-model="queryParams.itemLx"
          placeholder="请输入物料流向"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="收货时间" prop="shTime">
        <el-date-picker clearable
          v-model="queryParams.shTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择收货时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="上架时间" prop="sjTime">
        <el-date-picker clearable
          v-model="queryParams.sjTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择上架时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="转库下架时间" prop="zkXjTime">
        <el-date-picker clearable
          v-model="queryParams.zkXjTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择转库下架时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="转库过程时间" prop="zkGcTiem">
        <el-date-picker clearable
          v-model="queryParams.zkGcTiem"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择转库过程时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="转库上架时间" prop="zkSjTime">
        <el-date-picker clearable
          v-model="queryParams.zkSjTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择转库上架时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="下架时间" prop="xjTime">
        <el-date-picker clearable
          v-model="queryParams.xjTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择下架时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="下架置换时间" prop="xjZhTime">
        <el-date-picker clearable
          v-model="queryParams.xjZhTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择下架置换时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="组托时间" prop="ztTime">
        <el-date-picker clearable
          v-model="queryParams.ztTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择组托时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="缓存置换时间" prop="hcZhTime">
        <el-date-picker clearable
          v-model="queryParams.hcZhTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择缓存置换时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="组车时间" prop="zcTime">
        <el-date-picker clearable
          v-model="queryParams.zcTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择组车时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="园区出门时间" prop="yqcmTime">
        <el-date-picker clearable
          v-model="queryParams.yqcmTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择园区出门时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="仓储转运时间" prop="ccZyTime">
        <el-date-picker clearable
          v-model="queryParams.ccZyTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择仓储转运时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="中间库到达时间" prop="zjkDdTime">
        <el-date-picker clearable
          v-model="queryParams.zjkDdTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择中间库到达时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="中间库置换时间" prop="zjkZhTime">
        <el-date-picker clearable
          v-model="queryParams.zjkZhTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择中间库置换时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="中间库缓存时间" prop="zjkHcTime">
        <el-date-picker clearable
          v-model="queryParams.zjkHcTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择中间库缓存时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="中间库组车时间" prop="zjkZcTime">
        <el-date-picker clearable
          v-model="queryParams.zjkZcTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择中间库组车时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="内部转运时间" prop="nbZyTime">
        <el-date-picker clearable
          v-model="queryParams.nbZyTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择内部转运时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="PC库卸车区到达时间" prop="pckxzqDdTime">
        <el-date-picker clearable
          v-model="queryParams.pckxzqDdTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择PC库卸车区到达时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="输送线前端时间" prop="ssxQdTime">
        <el-date-picker clearable
          v-model="queryParams.ssxQdTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择输送线前端时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="输送线时间" prop="ssxTime">
        <el-date-picker clearable
          v-model="queryParams.ssxTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择输送线时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="组链时间" prop="zlTime">
        <el-date-picker clearable
          v-model="queryParams.zlTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择组链时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="组链等待时间" prop="zlDdTime">
        <el-date-picker clearable
          v-model="queryParams.zlDdTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择组链等待时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="配送时间" prop="psTime">
        <el-date-picker clearable
          v-model="queryParams.psTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择配送时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="线边置换时间" prop="xbzhTime">
        <el-date-picker clearable
          v-model="queryParams.xbzhTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择线边置换时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="装配时间" prop="zpTime">
        <el-date-picker clearable
          v-model="queryParams.zpTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择装配时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="入库核算周期" prop="rkHsZq">
        <el-input
          v-model="queryParams.rkHsZq"
          placeholder="请输入入库核算周期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="入库次数" prop="rkCs">
        <el-input
          v-model="queryParams.rkCs"
          placeholder="请输入入库次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="入库数量" prop="rkNum">
        <el-input
          v-model="queryParams.rkNum"
          placeholder="请输入入库数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="移库核算周期" prop="ykHsZq">
        <el-input
          v-model="queryParams.ykHsZq"
          placeholder="请输入移库核算周期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="移库次数" prop="ykCNum">
        <el-input
          v-model="queryParams.ykCNum"
          placeholder="请输入移库次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="移库数量" prop="ykNum">
        <el-input
          v-model="queryParams.ykNum"
          placeholder="请输入移库数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="出库核算周期" prop="ckHsZq">
        <el-input
          v-model="queryParams.ckHsZq"
          placeholder="请输入出库核算周期"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="出库次数" prop="ckCs">
        <el-input
          v-model="queryParams.ckCs"
          placeholder="请输入出库次数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="出库数量" prop="ckNum">
        <el-input
          v-model="queryParams.ckNum"
          placeholder="请输入出库数量"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>-->
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['base:iteminfoDistri:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['base:iteminfoDistri:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['base:iteminfoDistri:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="info"
          plain
          icon="el-icon-upload2"
          size="mini"
          @click="handleImport"
        >导入</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['base:iteminfoDistri:export']"
        >导出</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="iteminfoDistriList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="公司代码" align="center" prop="factoryCode" />
      <el-table-column label="公司名称" align="center" prop="factoryName" />
    <!--  <el-table-column label="WMS子图号"  width="120" align="center" prop="wmsItemCode" />-->
      <el-table-column label="物料编号"  width="150" align="center" prop="itemCode" />
      <el-table-column label="物料子编号" width="150" align="center" prop="itemId" />
      <el-table-column label="物料条码号"  width="150" align="center" prop="tmh" />
      <el-table-column label="物料名称"  width="150" show-overflow-tooltip align="center" prop="itemName" />
  <!--    <el-table-column label="公司代码"  width="120" show-overflow-tooltip align="center" prop="supplyId" />
      <el-table-column label="公司名称"  width="120" align="center" prop="supplyName" />
      <el-table-column label="物料正式属性" align="center" prop="itemZsAttr" />
      <el-table-column label="物料属性" align="center" prop="itemAttr" />
      <el-table-column label="质量属性" align="center" prop="qualityAttr" />
      <el-table-column label="生产线" align="center" prop="lineCode" />
      <el-table-column label="生产线工位" align="center" prop="lineCodeGw" />
      <el-table-column label="合同份额" align="center" prop="contractFe" />
      <el-table-column label="份额计算周期" align="center" prop="feJsZq" />
      <el-table-column label="日订单一致性" align="center" prop="rddYzx" />
      <el-table-column label="订单一致性" align="center" prop="ddYzx" />
      <el-table-column label="整车一致性" align="center" prop="zcYzx" />
      <el-table-column label="成对组号" align="center" prop="cdzh" />
      <el-table-column label="组合体" align="center" prop="zht" />
      <el-table-column label="配送上线策略" align="center" prop="pssxcl" />
      <el-table-column label="投料位" align="center" prop="tlw" />
      <el-table-column label="AB位" align="center" prop="abw" />
      <el-table-column label="物料计划类型" align="center" prop="itemPlanType" />
      <el-table-column label="物料分类" align="center" prop="itemClass" />
      <el-table-column label="投料编组线路" align="center" prop="tlbzlx" />
      <el-table-column label="组链号" align="center" prop="zlh" />
      <el-table-column label="组链器具数量" align="center" prop="zlqjNum" />
      <el-table-column label="配送类型" align="center" prop="psType" />
      <el-table-column label="配送车辆类型" align="center" prop="psCar" />
      <el-table-column label="配送设备控制" align="center" prop="psSbkz" />
      <el-table-column label="分拣台号" align="center" prop="fjHao" />
      <el-table-column label="分拣时间" align="center" prop="fjTime" />
      <el-table-column label="分装线" align="center" prop="fzLine" />
      <el-table-column label="分装总成号" align="center" prop="fzZcHao" />
      <el-table-column label="分装台号" align="center" prop="fzTHao" />
      <el-table-column label="分装时间" align="center" prop="fzTime" />
      <el-table-column label="物料大类名称" align="center" prop="itemBigName" />
      <el-table-column label="物料大类号" align="center" prop="classBigId" />
      <el-table-column label="配台期量" align="center" prop="ppql" />
      <el-table-column label="大类配台层容量" align="center" prop="bigPtcrl" />
      <el-table-column label="组合配台号" align="center" prop="zhPth" />
      <el-table-column label="组合配台层" align="center" prop="zhPtc" />
      <el-table-column label="综合配台号" align="center" prop="zwhPth" />
      <el-table-column label="配送器具类型" align="center" prop="psQjType" />
      <el-table-column label="配送器具编码" align="center" prop="psQjCode" />
      <el-table-column label="器具层位置" align="center" prop="cjcWz" />
      <el-table-column label="通用专用" align="center" prop="tyzy" />
      <el-table-column label="组别" align="center" prop="zb" />
      <el-table-column label="单车" align="center" prop="dctyl" />
      <el-table-column label="配送期量" align="center" prop="psQl" />
      <el-table-column label="理想出库数" align="center" prop="lxCkNum" />
      <el-table-column label="配送物料来源" align="center" prop="psItemLy" />-->
      <el-table-column label="出库仓库1" width="120" align="center" prop="stock1" />
<!--
      <el-table-column label="出库仓库2" align="center" prop="stock2" />
-->
     <!-- <el-table-column label="定置库位" align="center" prop="dzkw" />-->
      <el-table-column label="出库仓库1库存下限" align="center" prop="stock1Xx" />
      <el-table-column label="出库仓库1库存上限" align="center" prop="stock1Sx" />
     <!-- <el-table-column label="出库仓库2库存下限" align="center" prop="stock2Xx" />
      <el-table-column label="出库仓库2库存上限" align="center" prop="stock2Sx" />-->
<!--      <el-table-column label="定置库位上下限" align="center" prop="dzkwsxx" />
      <el-table-column label="是否预投补货" align="center" prop="sfytbh" />-->
      <el-table-column label="1级补货仓库" align="center" prop="bhStock1" />
      <el-table-column label="1级补货仓库容量" align="center" prop="bhStockRl1" />
     <!-- <el-table-column label="2级补货仓库" align="center" prop="bhStock2" />
      <el-table-column label="2级补货仓库容量" align="center" prop="bhStockRl2" />
      <el-table-column label="3级补货仓库" align="center" prop="bhStock3" />
      <el-table-column label="3级补货仓库容量" align="center" prop="bhStockRl3" />
      <el-table-column label="4级补货仓库" align="center" prop="bhStock4" />
      <el-table-column label="4级补货仓库容量" align="center" prop="bhStockRl4" />
      <el-table-column label="5级补货仓库" align="center" prop="bhStock5" />
      <el-table-column label="是否夸批" align="center" prop="isKp" />
      <el-table-column label="第一批出库" align="center" prop="firstCk" />
      <el-table-column label="使用状态" align="center" prop="useState" />
      <el-table-column label="体现使用状态" align="center" prop="txUseState" />
      <el-table-column label="合并出库" align="center" prop="hbCk" />
      <el-table-column label="托盘容量" align="center" prop="tpRl" />
      <el-table-column label="托盘编码" align="center" prop="tpBm" />
      <el-table-column label="限定入库数量校验" align="center" prop="xdRkNum" />
      <el-table-column label="送货包装类型" align="center" prop="shBzType" />
      <el-table-column label="送货包装编码" align="center" prop="shBzCode" />-->
     <!-- <el-table-column label="物料图片" align="center" prop="itemImg" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.itemImg" :width="50" :height="50"/>
        </template>
      </el-table-column>-->
     <!-- <el-table-column label="物料尺寸" align="center" prop="itemSize" />
      <el-table-column label="包装容量" align="center" prop="bzRl" />
      <el-table-column label="最小包装量" align="center" prop="smallBzRl" />
      <el-table-column label="存储仓库" align="center" prop="ccCk" />
      <el-table-column label="存储库区" align="center" prop="ccKq" />
      <el-table-column label="存储库位" align="center" prop="ccKw" />
      <el-table-column label="安全库存" align="center" prop="stockSafe" />
      <el-table-column label="库存下限" align="center" prop="downLine" />
      <el-table-column label="库存上限" align="center" prop="upLine" />
      <el-table-column label="溢库仓库" align="center" prop="ykStock" />
      <el-table-column label="发货地址" align="center" prop="fhAddress" />
      <el-table-column label="收货地址" align="center" prop="shAddress" />
      <el-table-column label="发货方式" align="center" prop="faType" />
      <el-table-column label="物料流向" align="center" prop="itemLx" />
      <el-table-column label="收货时间" align="center" prop="shTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.shTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="上架时间" align="center" prop="sjTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.sjTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="转库下架时间" align="center" prop="zkXjTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zkXjTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="转库过程时间" align="center" prop="zkGcTiem" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zkGcTiem, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="转库上架时间" align="center" prop="zkSjTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zkSjTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="下架时间" align="center" prop="xjTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.xjTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="下架置换时间" align="center" prop="xjZhTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.xjZhTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="组托时间" align="center" prop="ztTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.ztTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="缓存置换时间" align="center" prop="hcZhTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.hcZhTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="组车时间" align="center" prop="zcTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zcTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="园区出门时间" align="center" prop="yqcmTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.yqcmTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="仓储转运时间" align="center" prop="ccZyTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.ccZyTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="中间库到达时间" align="center" prop="zjkDdTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zjkDdTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="中间库置换时间" align="center" prop="zjkZhTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zjkZhTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="中间库缓存时间" align="center" prop="zjkHcTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zjkHcTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="中间库组车时间" align="center" prop="zjkZcTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zjkZcTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="内部转运时间" align="center" prop="nbZyTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.nbZyTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="PC库卸车区到达时间" align="center" prop="pckxzqDdTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.pckxzqDdTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="输送线前端时间" align="center" prop="ssxQdTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.ssxQdTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="输送线时间" align="center" prop="ssxTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.ssxTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="组链时间" align="center" prop="zlTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zlTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="组链等待时间" align="center" prop="zlDdTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zlDdTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="配送时间" align="center" prop="psTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.psTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="线边置换时间" align="center" prop="xbzhTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.xbzhTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="装配时间" align="center" prop="zpTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.zpTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="入库核算周期" align="center" prop="rkHsZq" />
      <el-table-column label="入库次数" align="center" prop="rkCs" />
      <el-table-column label="入库数量" align="center" prop="rkNum" />
      <el-table-column label="移库核算周期" align="center" prop="ykHsZq" />
      <el-table-column label="移库次数" align="center" prop="ykCNum" />
      <el-table-column label="移库数量" align="center" prop="ykNum" />
      <el-table-column label="出库核算周期" align="center" prop="ckHsZq" />
      <el-table-column label="出库次数" align="center" prop="ckCs" />
      <el-table-column label="出库数量" align="center" prop="ckNum" />-->
      <el-table-column label="备注" align="center" prop="remark" />
      <el-table-column label="操作" width="100" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['base:iteminfoDistri:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['base:iteminfoDistri:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改物料储分配送工艺基础表对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="公司代码" prop="factoryCode">
          <el-input v-model="form.factoryCode" placeholder="请输入公司代码" />
        </el-form-item>
        <el-form-item label="公司名称" prop="factoryName">
          <el-input v-model="form.factoryName" placeholder="请输入公司名称" />
        </el-form-item>
        <el-form-item label="WMS子图号" prop="wmsItemCode">
          <el-input v-model="form.wmsItemCode" placeholder="请输入WMS子图号" />
        </el-form-item>
        <el-form-item label="子图号" prop="itemCode">
          <el-input v-model="form.itemCode" placeholder="请输入子图号" />
        </el-form-item>
        <el-form-item label="物料号" prop="itemId">
          <el-input v-model="form.itemId" placeholder="请输入物料号" />
        </el-form-item>
        <el-form-item label="物料条码号" prop="tmh">
          <el-input v-model="form.tmh" placeholder="请输入物料条码号" />
        </el-form-item>
        <el-form-item label="名称" prop="itemName">
          <el-input v-model="form.itemName" placeholder="请输入名称" />
        </el-form-item>
        <el-form-item label="公司代码" prop="supplyId">
          <el-input v-model="form.supplyId" placeholder="请输入公司代码" />
        </el-form-item>
        <el-form-item label="公司名称" prop="supplyName">
          <el-input v-model="form.supplyName" placeholder="请输入公司名称" />
        </el-form-item>
        <el-form-item label="物料正式属性" prop="itemZsAttr">
          <el-input v-model="form.itemZsAttr" placeholder="请输入物料正式属性" />
        </el-form-item>
        <el-form-item label="物料属性" prop="itemAttr">
          <el-input v-model="form.itemAttr" placeholder="请输入物料属性" />
        </el-form-item>
        <el-form-item label="质量属性" prop="qualityAttr">
          <el-input v-model="form.qualityAttr" placeholder="请输入质量属性" />
        </el-form-item>
        <el-form-item label="生产线" prop="lineCode">
          <el-input v-model="form.lineCode" placeholder="请输入生产线" />
        </el-form-item>
        <el-form-item label="生产线工位" prop="lineCodeGw">
          <el-input v-model="form.lineCodeGw" placeholder="请输入生产线工位" />
        </el-form-item>
        <el-form-item label="合同份额" prop="contractFe">
          <el-input v-model="form.contractFe" placeholder="请输入合同份额" />
        </el-form-item>
        <el-form-item label="份额计算周期" prop="feJsZq">
          <el-input v-model="form.feJsZq" placeholder="请输入份额计算周期" />
        </el-form-item>
        <el-form-item label="日订单一致性" prop="rddYzx">
          <el-input v-model="form.rddYzx" placeholder="请输入日订单一致性" />
        </el-form-item>
        <el-form-item label="订单一致性" prop="ddYzx">
          <el-input v-model="form.ddYzx" placeholder="请输入订单一致性" />
        </el-form-item>
        <el-form-item label="整车一致性" prop="zcYzx">
          <el-input v-model="form.zcYzx" placeholder="请输入整车一致性" />
        </el-form-item>
        <el-form-item label="成对组号" prop="cdzh">
          <el-input v-model="form.cdzh" placeholder="请输入成对组号" />
        </el-form-item>
        <el-form-item label="组合体" prop="zht">
          <el-input v-model="form.zht" placeholder="请输入组合体" />
        </el-form-item>
        <el-form-item label="配送上线策略" prop="pssxcl">
          <el-input v-model="form.pssxcl" placeholder="请输入配送上线策略" />
        </el-form-item>
        <el-form-item label="投料位" prop="tlw">
          <el-input v-model="form.tlw" placeholder="请输入投料位" />
        </el-form-item>
        <el-form-item label="AB位" prop="abw">
          <el-input v-model="form.abw" placeholder="请输入AB位" />
        </el-form-item>
        <el-form-item label="物料分类" prop="itemClass">
          <el-input v-model="form.itemClass" placeholder="请输入物料分类" />
        </el-form-item>
        <el-form-item label="投料编组线路" prop="tlbzlx">
          <el-input v-model="form.tlbzlx" placeholder="请输入投料编组线路" />
        </el-form-item>
        <el-form-item label="组链号" prop="zlh">
          <el-input v-model="form.zlh" placeholder="请输入组链号" />
        </el-form-item>
        <el-form-item label="组链器具数量" prop="zlqjNum">
          <el-input v-model="form.zlqjNum" placeholder="请输入组链器具数量" />
        </el-form-item>
        <el-form-item label="配送车辆类型" prop="psCar">
          <el-input v-model="form.psCar" placeholder="请输入配送车辆类型" />
        </el-form-item>
        <el-form-item label="配送设备控制" prop="psSbkz">
          <el-input v-model="form.psSbkz" placeholder="请输入配送设备控制" />
        </el-form-item>
        <el-form-item label="分拣台号" prop="fjHao">
          <el-input v-model="form.fjHao" placeholder="请输入分拣台号" />
        </el-form-item>
        <el-form-item label="分拣时间" prop="fjTime">
          <el-input v-model="form.fjTime" placeholder="请输入分拣时间" />
        </el-form-item>
        <el-form-item label="分装线" prop="fzLine">
          <el-input v-model="form.fzLine" placeholder="请输入分装线" />
        </el-form-item>
        <el-form-item label="分装总成号" prop="fzZcHao">
          <el-input v-model="form.fzZcHao" placeholder="请输入分装总成号" />
        </el-form-item>
        <el-form-item label="分装台号" prop="fzTHao">
          <el-input v-model="form.fzTHao" placeholder="请输入分装台号" />
        </el-form-item>
        <el-form-item label="分装时间" prop="fzTime">
          <el-input v-model="form.fzTime" placeholder="请输入分装时间" />
        </el-form-item>
        <el-form-item label="物料大类名称" prop="itemBigName">
          <el-input v-model="form.itemBigName" placeholder="请输入物料大类名称" />
        </el-form-item>
        <el-form-item label="物料大类号" prop="classBigId">
          <el-input v-model="form.classBigId" placeholder="请输入物料大类号" />
        </el-form-item>
        <el-form-item label="配台期量" prop="ppql">
          <el-input v-model="form.ppql" placeholder="请输入配台期量" />
        </el-form-item>
        <el-form-item label="大类配台层容量" prop="bigPtcrl">
          <el-input v-model="form.bigPtcrl" placeholder="请输入大类配台层容量" />
        </el-form-item>
        <el-form-item label="组合配台号" prop="zhPth">
          <el-input v-model="form.zhPth" placeholder="请输入组合配台号" />
        </el-form-item>
        <el-form-item label="组合配台层" prop="zhPtc">
          <el-input v-model="form.zhPtc" placeholder="请输入组合配台层" />
        </el-form-item>
        <el-form-item label="综合配台号" prop="zwhPth">
          <el-input v-model="form.zwhPth" placeholder="请输入综合配台号" />
        </el-form-item>
        <el-form-item label="配送器具编码" prop="psQjCode">
          <el-input v-model="form.psQjCode" placeholder="请输入配送器具编码" />
        </el-form-item>
        <el-form-item label="器具层位置" prop="cjcWz">
          <el-input v-model="form.cjcWz" placeholder="请输入器具层位置" />
        </el-form-item>
        <el-form-item label="通用专用" prop="tyzy">
          <el-input v-model="form.tyzy" placeholder="请输入通用专用" />
        </el-form-item>
        <el-form-item label="组别" prop="zb">
          <el-input v-model="form.zb" placeholder="请输入组别" />
        </el-form-item>
        <el-form-item label="单车" prop="dctyl">
          <el-input v-model="form.dctyl" placeholder="请输入单车" />
        </el-form-item>
        <el-form-item label="配送期量" prop="psQl">
          <el-input v-model="form.psQl" placeholder="请输入配送期量" />
        </el-form-item>
        <el-form-item label="理想出库数" prop="lxCkNum">
          <el-input v-model="form.lxCkNum" placeholder="请输入理想出库数" />
        </el-form-item>
        <el-form-item label="配送物料来源" prop="psItemLy">
          <el-input v-model="form.psItemLy" placeholder="请输入配送物料来源" />
        </el-form-item>
        <el-form-item label="出库仓库1" prop="stock1">
          <el-input v-model="form.stock1" placeholder="请输入出库仓库1" />
        </el-form-item>
        <el-form-item label="出库仓库2" prop="stock2">
          <el-input v-model="form.stock2" placeholder="请输入出库仓库2" />
        </el-form-item>
        <el-form-item label="定置库位" prop="dzkw">
          <el-input v-model="form.dzkw" placeholder="请输入定置库位" />
        </el-form-item>
        <el-form-item label="定置库位上下限" prop="dzkwsxx">
          <el-input v-model="form.dzkwsxx" placeholder="请输入定置库位上下限" />
        </el-form-item>
        <el-form-item label="是否预投补货" prop="sfytbh">
          <el-input v-model="form.sfytbh" placeholder="请输入是否预投补货" />
        </el-form-item>
        <el-form-item label="1级补货仓库" prop="bhStock1">
          <el-input v-model="form.bhStock1" placeholder="请输入1级补货仓库" />
        </el-form-item>
        <el-form-item label="1级补货仓库容量" prop="bhStockRl1">
          <el-input v-model="form.bhStockRl1" placeholder="请输入1级补货仓库容量" />
        </el-form-item>
        <el-form-item label="2级补货仓库" prop="bhStock2">
          <el-input v-model="form.bhStock2" placeholder="请输入2级补货仓库" />
        </el-form-item>
        <el-form-item label="2级补货仓库容量" prop="bhStockRl2">
          <el-input v-model="form.bhStockRl2" placeholder="请输入2级补货仓库容量" />
        </el-form-item>
        <el-form-item label="3级补货仓库" prop="bhStock3">
          <el-input v-model="form.bhStock3" placeholder="请输入3级补货仓库" />
        </el-form-item>
        <el-form-item label="3级补货仓库容量" prop="bhStockRl3">
          <el-input v-model="form.bhStockRl3" placeholder="请输入3级补货仓库容量" />
        </el-form-item>
        <el-form-item label="4级补货仓库" prop="bhStock4">
          <el-input v-model="form.bhStock4" placeholder="请输入4级补货仓库" />
        </el-form-item>
        <el-form-item label="4级补货仓库容量" prop="bhStockRl4">
          <el-input v-model="form.bhStockRl4" placeholder="请输入4级补货仓库容量" />
        </el-form-item>
        <el-form-item label="5级补货仓库" prop="bhStock5">
          <el-input v-model="form.bhStock5" placeholder="请输入5级补货仓库" />
        </el-form-item>
        <el-form-item label="是否夸批" prop="isKp">
          <el-input v-model="form.isKp" placeholder="请输入是否夸批" />
        </el-form-item>
        <el-form-item label="第一批出库" prop="firstCk">
          <el-input v-model="form.firstCk" placeholder="请输入第一批出库" />
        </el-form-item>
        <el-form-item label="使用状态" prop="useState">
          <el-input v-model="form.useState" placeholder="请输入使用状态" />
        </el-form-item>
        <el-form-item label="体现使用状态" prop="txUseState">
          <el-input v-model="form.txUseState" placeholder="请输入体现使用状态" />
        </el-form-item>
        <el-form-item label="合并出库" prop="hbCk">
          <el-input v-model="form.hbCk" placeholder="请输入合并出库" />
        </el-form-item>
        <el-form-item label="托盘容量" prop="tpRl">
          <el-input v-model="form.tpRl" placeholder="请输入托盘容量" />
        </el-form-item>
        <el-form-item label="托盘编码" prop="tpBm">
          <el-input v-model="form.tpBm" placeholder="请输入托盘编码" />
        </el-form-item>
        <el-form-item label="限定入库数量校验" prop="xdRkNum">
          <el-input v-model="form.xdRkNum" placeholder="请输入限定入库数量校验" />
        </el-form-item>
        <el-form-item label="送货包装编码" prop="shBzCode">
          <el-input v-model="form.shBzCode" placeholder="请输入送货包装编码" />
        </el-form-item>
        <el-form-item label="物料图片">
          <image-upload v-model="form.itemImg"/>
        </el-form-item>
        <el-form-item label="物料尺寸" prop="itemSize">
          <el-input v-model="form.itemSize" placeholder="请输入物料尺寸" />
        </el-form-item>
        <el-form-item label="包装容量" prop="bzRl">
          <el-input v-model="form.bzRl" placeholder="请输入包装容量" />
        </el-form-item>
        <el-form-item label="最小包装量" prop="smallBzRl">
          <el-input v-model="form.smallBzRl" placeholder="请输入最小包装量" />
        </el-form-item>
        <el-form-item label="存储仓库" prop="ccCk">
          <el-input v-model="form.ccCk" placeholder="请输入存储仓库" />
        </el-form-item>
        <el-form-item label="存储库区" prop="ccKq">
          <el-input v-model="form.ccKq" placeholder="请输入存储库区" />
        </el-form-item>
        <el-form-item label="存储库位" prop="ccKw">
          <el-input v-model="form.ccKw" placeholder="请输入存储库位" />
        </el-form-item>
        <el-form-item label="安全库存" prop="stockSafe">
          <el-input v-model="form.stockSafe" placeholder="请输入安全库存" />
        </el-form-item>
        <el-form-item label="库存下限" prop="downLine">
          <el-input v-model="form.downLine" placeholder="请输入库存下限" />
        </el-form-item>
        <el-form-item label="库存上限" prop="upLine">
          <el-input v-model="form.upLine" placeholder="请输入库存上限" />
        </el-form-item>
        <el-form-item label="溢库仓库" prop="ykStock">
          <el-input v-model="form.ykStock" placeholder="请输入溢库仓库" />
        </el-form-item>
        <el-form-item label="发货地址" prop="fhAddress">
          <el-input v-model="form.fhAddress" placeholder="请输入发货地址" />
        </el-form-item>
        <el-form-item label="收货地址" prop="shAddress">
          <el-input v-model="form.shAddress" placeholder="请输入收货地址" />
        </el-form-item>
        <el-form-item label="物料流向" prop="itemLx">
          <el-input v-model="form.itemLx" placeholder="请输入物料流向" />
        </el-form-item>
        <el-form-item label="收货时间" prop="shTime">
          <el-date-picker clearable
            v-model="form.shTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择收货时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="上架时间" prop="sjTime">
          <el-date-picker clearable
            v-model="form.sjTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择上架时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="转库下架时间" prop="zkXjTime">
          <el-date-picker clearable
            v-model="form.zkXjTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择转库下架时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="转库过程时间" prop="zkGcTiem">
          <el-date-picker clearable
            v-model="form.zkGcTiem"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择转库过程时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="转库上架时间" prop="zkSjTime">
          <el-date-picker clearable
            v-model="form.zkSjTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择转库上架时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="下架时间" prop="xjTime">
          <el-date-picker clearable
            v-model="form.xjTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择下架时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="下架置换时间" prop="xjZhTime">
          <el-date-picker clearable
            v-model="form.xjZhTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择下架置换时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="组托时间" prop="ztTime">
          <el-date-picker clearable
            v-model="form.ztTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择组托时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="缓存置换时间" prop="hcZhTime">
          <el-date-picker clearable
            v-model="form.hcZhTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择缓存置换时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="组车时间" prop="zcTime">
          <el-date-picker clearable
            v-model="form.zcTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择组车时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="园区出门时间" prop="yqcmTime">
          <el-date-picker clearable
            v-model="form.yqcmTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择园区出门时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="仓储转运时间" prop="ccZyTime">
          <el-date-picker clearable
            v-model="form.ccZyTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择仓储转运时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="中间库到达时间" prop="zjkDdTime">
          <el-date-picker clearable
            v-model="form.zjkDdTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择中间库到达时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="中间库置换时间" prop="zjkZhTime">
          <el-date-picker clearable
            v-model="form.zjkZhTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择中间库置换时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="中间库缓存时间" prop="zjkHcTime">
          <el-date-picker clearable
            v-model="form.zjkHcTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择中间库缓存时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="中间库组车时间" prop="zjkZcTime">
          <el-date-picker clearable
            v-model="form.zjkZcTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择中间库组车时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="内部转运时间" prop="nbZyTime">
          <el-date-picker clearable
            v-model="form.nbZyTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择内部转运时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="PC库卸车区到达时间" prop="pckxzqDdTime">
          <el-date-picker clearable
            v-model="form.pckxzqDdTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择PC库卸车区到达时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="输送线前端时间" prop="ssxQdTime">
          <el-date-picker clearable
            v-model="form.ssxQdTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择输送线前端时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="输送线时间" prop="ssxTime">
          <el-date-picker clearable
            v-model="form.ssxTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择输送线时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="组链时间" prop="zlTime">
          <el-date-picker clearable
            v-model="form.zlTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择组链时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="组链等待时间" prop="zlDdTime">
          <el-date-picker clearable
            v-model="form.zlDdTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择组链等待时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="配送时间" prop="psTime">
          <el-date-picker clearable
            v-model="form.psTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择配送时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="线边置换时间" prop="xbzhTime">
          <el-date-picker clearable
            v-model="form.xbzhTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择线边置换时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="装配时间" prop="zpTime">
          <el-date-picker clearable
            v-model="form.zpTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择装配时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="入库核算周期" prop="rkHsZq">
          <el-input v-model="form.rkHsZq" placeholder="请输入入库核算周期" />
        </el-form-item>
        <el-form-item label="入库次数" prop="rkCs">
          <el-input v-model="form.rkCs" placeholder="请输入入库次数" />
        </el-form-item>
        <el-form-item label="入库数量" prop="rkNum">
          <el-input v-model="form.rkNum" placeholder="请输入入库数量" />
        </el-form-item>
        <el-form-item label="移库核算周期" prop="ykHsZq">
          <el-input v-model="form.ykHsZq" placeholder="请输入移库核算周期" />
        </el-form-item>
        <el-form-item label="移库次数" prop="ykCNum">
          <el-input v-model="form.ykCNum" placeholder="请输入移库次数" />
        </el-form-item>
        <el-form-item label="移库数量" prop="ykNum">
          <el-input v-model="form.ykNum" placeholder="请输入移库数量" />
        </el-form-item>
        <el-form-item label="出库核算周期" prop="ckHsZq">
          <el-input v-model="form.ckHsZq" placeholder="请输入出库核算周期" />
        </el-form-item>
        <el-form-item label="出库次数" prop="ckCs">
          <el-input v-model="form.ckCs" placeholder="请输入出库次数" />
        </el-form-item>
        <el-form-item label="出库数量" prop="ckNum">
          <el-input v-model="form.ckNum" placeholder="请输入出库数量" />
        </el-form-item>
        <el-form-item label="备注" prop="remark">
          <el-input v-model="form.remark" placeholder="请输入备注" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
    <!-- 物料导入对话框 -->
    <el-dialog :close-on-click-modal="false" :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body>
      <el-upload
        ref="upload"
        :limit="1"
        accept=".xlsx, .xls"
        :headers="upload.headers"
        :action="upload.url + '?updateSupport=' + upload.updateSupport"
        :disabled="upload.isUploading"
        :on-progress="handleFileUploadProgress"
        :on-success="handleFileSuccess"
        :auto-upload="false"
        drag
      >
        <i class="el-icon-upload"></i>
        <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
        <div class="el-upload__tip text-center" slot="tip">
            <div class="el-upload__tip" slot="tip">
              <el-checkbox v-model="upload.updateSupport" /> 是否更新已经存在的数据
            </div>
          <span>仅允许导入xls、xlsx格式文件。</span>
          <el-link type="primary" :underline="false" style="font-size:12px;vertical-align: baseline;" @click="importTemplate">下载模板</el-link>
        </div>
      </el-upload>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitFileForm">确 定</el-button>
        <el-button @click="upload.open = false">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listIteminfoDistri, getIteminfoDistri, delIteminfoDistri, addIteminfoDistri, updateIteminfoDistri } from "@/api/base/iteminfoDistri";
import {getToken} from "@/utils/auth";

export default {
  name: "IteminfoDistri",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 物料储分配送工艺基础表表格数据
      iteminfoDistriList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        factoryCode: null,
        factoryName: null,
        wmsItemCode: null,
        itemCode: null,
        itemId: null,
        tmh: null,
        itemName: null,
        supplyId: null,
        supplyName: null,
        itemZsAttr: null,
        itemAttr: null,
        qualityAttr: null,
        lineCode: null,
        lineCodeGw: null,
        contractFe: null,
        feJsZq: null,
        rddYzx: null,
        ddYzx: null,
        zcYzx: null,
        cdzh: null,
        zht: null,
        pssxcl: null,
        tlw: null,
        abw: null,
        itemPlanType: null,
        itemClass: null,
        tlbzlx: null,
        zlh: null,
        zlqjNum: null,
        psType: null,
        psCar: null,
        psSbkz: null,
        fjHao: null,
        fjTime: null,
        fzLine: null,
        fzZcHao: null,
        fzTHao: null,
        fzTime: null,
        itemBigName: null,
        classBigId: null,
        ppql: null,
        bigPtcrl: null,
        zhPth: null,
        zhPtc: null,
        zwhPth: null,
        psQjType: null,
        psQjCode: null,
        cjcWz: null,
        tyzy: null,
        zb: null,
        dctyl: null,
        psQl: null,
        lxCkNum: null,
        psItemLy: null,
        stock1: null,
        stock2: null,
        dzkw: null,
        dzkwsxx: null,
        sfytbh: null,
        bhStock1: null,
        bhStockRl1: null,
        bhStock2: null,
        bhStockRl2: null,
        bhStock3: null,
        bhStockRl3: null,
        bhStock4: null,
        bhStockRl4: null,
        bhStock5: null,
        isKp: null,
        firstCk: null,
        useState: null,
        txUseState: null,
        hbCk: null,
        tpRl: null,
        tpBm: null,
        xdRkNum: null,
        shBzType: null,
        shBzCode: null,
        itemImg: null,
        itemSize: null,
        bzRl: null,
        smallBzRl: null,
        ccCk: null,
        ccKq: null,
        ccKw: null,
        stockSafe: null,
        downLine: null,
        upLine: null,
        ykStock: null,
        fhAddress: null,
        shAddress: null,
        faType: null,
        itemLx: null,
        shTime: null,
        sjTime: null,
        zkXjTime: null,
        zkGcTiem: null,
        zkSjTime: null,
        xjTime: null,
        xjZhTime: null,
        ztTime: null,
        hcZhTime: null,
        zcTime: null,
        yqcmTime: null,
        ccZyTime: null,
        zjkDdTime: null,
        zjkZhTime: null,
        zjkHcTime: null,
        zjkZcTime: null,
        nbZyTime: null,
        pckxzqDdTime: null,
        ssxQdTime: null,
        ssxTime: null,
        zlTime: null,
        zlDdTime: null,
        psTime: null,
        xbzhTime: null,
        zpTime: null,
        rkHsZq: null,
        rkCs: null,
        rkNum: null,
        ykHsZq: null,
        ykCNum: null,
        ykNum: null,
        ckHsZq: null,
        ckCs: null,
        ckNum: null,
      },
      // 表单参数
      form: {},
      // 物料导入参数
      upload: {
        // 是否显示弹出层
        open: false,
        // 弹出层标题（物料储分配送工艺基础表导入）
        title: "导入物料储分配送工艺基础表",
        // 是否禁用上传
        isUploading: false,
        // 是否更新已经存在的用户数据
        updateSupport: 0,
        // 设置上传的请求头部
        headers: { Authorization: "Bearer " + getToken() },
        // 上传的地址
        url: process.env.VUE_APP_BASE_API + "/base/iteminfoDistri/importData"
      },
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询物料储分配送工艺基础表列表 */
    getList() {
      this.loading = true;
      listIteminfoDistri(this.queryParams).then(response => {
        this.iteminfoDistriList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: null,
        factoryCode: null,
        factoryName: null,
        wmsItemCode: null,
        itemCode: null,
        itemId: null,
        tmh: null,
        itemName: null,
        supplyId: null,
        supplyName: null,
        itemZsAttr: null,
        itemAttr: null,
        qualityAttr: null,
        lineCode: null,
        lineCodeGw: null,
        contractFe: null,
        feJsZq: null,
        rddYzx: null,
        ddYzx: null,
        zcYzx: null,
        cdzh: null,
        zht: null,
        pssxcl: null,
        tlw: null,
        abw: null,
        itemPlanType: null,
        itemClass: null,
        tlbzlx: null,
        zlh: null,
        zlqjNum: null,
        psType: null,
        psCar: null,
        psSbkz: null,
        fjHao: null,
        fjTime: null,
        fzLine: null,
        fzZcHao: null,
        fzTHao: null,
        fzTime: null,
        itemBigName: null,
        classBigId: null,
        ppql: null,
        bigPtcrl: null,
        zhPth: null,
        zhPtc: null,
        zwhPth: null,
        psQjType: null,
        psQjCode: null,
        cjcWz: null,
        tyzy: null,
        zb: null,
        dctyl: null,
        psQl: null,
        lxCkNum: null,
        psItemLy: null,
        stock1: null,
        stock2: null,
        dzkw: null,
        dzkwsxx: null,
        sfytbh: null,
        bhStock1: null,
        bhStockRl1: null,
        bhStock2: null,
        bhStockRl2: null,
        bhStock3: null,
        bhStockRl3: null,
        bhStock4: null,
        bhStockRl4: null,
        bhStock5: null,
        isKp: null,
        firstCk: null,
        useState: null,
        txUseState: null,
        hbCk: null,
        tpRl: null,
        tpBm: null,
        xdRkNum: null,
        shBzType: null,
        shBzCode: null,
        itemImg: null,
        itemSize: null,
        bzRl: null,
        smallBzRl: null,
        ccCk: null,
        ccKq: null,
        ccKw: null,
        stockSafe: null,
        downLine: null,
        upLine: null,
        ykStock: null,
        fhAddress: null,
        shAddress: null,
        faType: null,
        itemLx: null,
        shTime: null,
        sjTime: null,
        zkXjTime: null,
        zkGcTiem: null,
        zkSjTime: null,
        xjTime: null,
        xjZhTime: null,
        ztTime: null,
        hcZhTime: null,
        zcTime: null,
        yqcmTime: null,
        ccZyTime: null,
        zjkDdTime: null,
        zjkZhTime: null,
        zjkHcTime: null,
        zjkZcTime: null,
        nbZyTime: null,
        pckxzqDdTime: null,
        ssxQdTime: null,
        ssxTime: null,
        zlTime: null,
        zlDdTime: null,
        psTime: null,
        xbzhTime: null,
        zpTime: null,
        rkHsZq: null,
        rkCs: null,
        rkNum: null,
        ykHsZq: null,
        ykCNum: null,
        ykNum: null,
        ckHsZq: null,
        ckCs: null,
        ckNum: null,
        createBy: null,
        createTime: null,
        updateBy: null,
        updateTime: null,
        remark: null
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加物料储分配送工艺基础表";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const id = row.id || this.ids
      getIteminfoDistri(id).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改物料储分配送工艺基础表";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.id != null) {
            updateIteminfoDistri(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addIteminfoDistri(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除物料储分配送工艺基础表编号为"' + ids + '"的数据项？').then(function() {
        return delIteminfoDistri(ids);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('base/iteminfoDistri/export', {
        ...this.queryParams
      }, `导出物料储分配送工艺基础表_${new Date().getTime()}.xlsx`)
    },
    /** 导入按钮操作 */
    handleImport() {
      this.upload.title = "物料储分配送工艺基础表";
      this.upload.open = true;
    },
    /** 下载模板操作 */
    importTemplate() {
      this.download('base/iteminfoDistri/importTemplate', {
      }, `物料储分配送工艺基础表模板_${new Date().getTime()}.xlsx`)
    },
    // 文件上传中处理
    handleFileUploadProgress(event, file, fileList) {
      this.upload.isUploading = true;
    },
    // 文件上传成功处理
    handleFileSuccess(response, file, fileList) {
      this.upload.open = false;
      this.upload.isUploading = false;
      this.$refs.upload.clearFiles();
      this.$alert("<div style='overflow: auto;overflow-x: hidden;max-height: 70vh;padding: 10px 20px 0;'>" + response.msg + "</div>", "导入结果", { dangerouslyUseHTMLString: true });
      this.getList();
    },
    // 提交上传文件
    submitFileForm() {
      this.$refs.upload.submit();
    }
  }
};
</script>
